package Classroom.A0510.finalPra;

public class Peo {

    String name;
    //实例  常量  必须  在创建对象之前 完成初始化
    final String school;

    //静态常量
    final static double PI = Math.PI;

    public Peo(){
        school = "中原工";
    }
    public Peo(String school){
        this.school = school;
    }
    //final修饰的方法不能被子类重写   提高程序安全性
    final void eat() {

    }
    void say(){

    }
    public static void main(String[] args) {
        Peo peo = new Peo("中原工");
        System.out.println(peo.school);
//        peo.school = "软件学院";
    }
}
